<?php /*a:7:{s:84:"F:\phpstudy\phpstudy1\phpstudy_pro\WWW\test\heco\bnb_dapp\view\admin\admin\edit.html";i:1698742132;s:85:"F:\phpstudy\phpstudy1\phpstudy_pro\WWW\test\heco\bnb_dapp\view\admin\public\base.html";i:1648694629;s:93:"F:\phpstudy\phpstudy1\phpstudy_pro\WWW\test\heco\bnb_dapp\view\admin\public\admin_load_t.html";i:1648694629;s:90:"F:\phpstudy\phpstudy1\phpstudy_pro\WWW\test\heco\bnb_dapp\view\admin\public\admin_top.html";i:1648694629;s:91:"F:\phpstudy\phpstudy1\phpstudy_pro\WWW\test\heco\bnb_dapp\view\admin\public\admin_left.html";i:1648694629;s:93:"F:\phpstudy\phpstudy1\phpstudy_pro\WWW\test\heco\bnb_dapp\view\admin\public\admin_bottom.html";i:1648694629;s:93:"F:\phpstudy\phpstudy1\phpstudy_pro\WWW\test\heco\bnb_dapp\view\admin\public\admin_load_b.html";i:1648694629;}*/ ?>
<?php if(ISPJAX != true): ?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
<?php endif; ?>
<title><?php if($data): ?><?php echo lang('edit'); else: ?><?php echo lang('create'); ?><?php endif; ?></title>
<?php if(ISPJAX != true): ?>
<link rel="stylesheet" type="text/css" href="/static/global/font-awesome/css/font-awesome.min.css" />
<link rel="stylesheet" type="text/css" href="/static/global/select2/select2.min.css" />
<link rel="stylesheet" type="text/css" href="/static/global/icheck/flat/green.css" />
<link rel="stylesheet" type="text/css" href="/static/global/datetimepicker/bootstrap-datetimepicker.min.css" />
<link rel="stylesheet" type="text/css" href="/static/global/bootstrap/css/bootstrap.min.css" />
<link rel="stylesheet" type="text/css" href="/static/system/dist/css/AdminLTE.min.css" />
<link rel="stylesheet" type="text/css" href="/static/system/dist/css/skin-blue.min.css" />
<script type="text/javascript" src="/static/global/jquery/jquery-2.2.3.min.js"></script>
<script type="text/javascript" src="/static/global/bootstrap/js/bootstrap.min.js"></script>
<!--[if lt IE 9]>
<script type="text/javascript" src="/static/global/common/js/html5shiv.min.js"></script>
<script type="text/javascript" src="/static/global/common/js/respond.min.js"></script>
<![endif]-->
<?php endif; if(ISPJAX != true): ?>
</head>
<body class="hold-transition skin-blue fixed sidebar-mini">
<div class="wrapper">
<?php endif; if(ISPJAX != true): ?>
<header class="main-header">
    <a class="logo hidden-xs">
        <span class="logo-mini"><?php echo config('dbconfig.sys.top_small_logo'); ?></span>
        <span class="logo-lg"><?php echo config('dbconfig.sys.top_big_logo'); ?></span>
    </a>
    <nav class="navbar navbar-static-top">
        <a href="javacript:void(0);" class="sidebar-toggle" title="展开主菜单" data-toggle="push-menu" role="button">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
        </a>
        <div class="navbar-custom-menu">
            <ul class="nav navbar-nav">
                <li><a href="<?php echo request()->domain(); ?>" target="_blank"><i class="fa fa-home"></i> <?php echo lang('web_home'); ?></a></li>
                <li><a href="<?php echo url('Login/LoginLock'); ?>" ><i class="fa fa-desktop"></i> <?php echo lang('lock_btn'); ?></a></li>
                <?php echo auth_action('Index/cleanCache', 'clean_cache', lang('clean_cache'), -1, '', '', 'paint-brush'); ?>
                <li class="dropdown user user-menu">
                    <a href="javacript:void(0);" class="dropdown-toggle" data-toggle="dropdown">
                        <img src="<?php echo cookie('admin_avatar'); ?>" class="user-image" alt="User Image">
                        <span class="hidden-xs"><?php echo cookie('admin_name'); ?></span>
                    </a>
                    <ul class="dropdown-menu">
                        <li><?php echo auth_action('Admin/editSelf', 'a', lang('edit_self'), [], 'flat', 'default', 'user-o'); ?></li>
                        <li><a href="<?php echo url('Login/LoginOut'); ?>" class="btn btn-default btn-flat last"><i class="fa fa-sign-out"></i> <?php echo lang('sign_out'); ?></a></li>
                    </ul>
                </li>
            </ul>
        </div>
    </nav>
</header>
<?php endif; if(ISPJAX != true): ?>
<aside class="main-sidebar">
    <section class="sidebar">
        <ul class="sidebar-menu" data-widget="tree">
            <?php if(is_array($treeMenu) || $treeMenu instanceof \think\Collection || $treeMenu instanceof \think\Paginator): $i = 0; $__LIST__ = $treeMenu;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
            <li class="<?php if(!empty($vo['_child'])): ?>treeview <?php endif; if(in_array($vo['id'], $activeMenus)): ?>active menu-open<?php endif; ?>">
                <a href="<?php if(!empty($vo['_child'])): ?>javascript:void(0);<?php else: ?><?php echo url($vo['name']); ?><?php endif; ?>">
                    <i class="<?php echo $vo['icon']; ?>"></i><span><?php echo $vo['title']; ?></span>
                    <?php if(!empty($vo['_child'])): ?>
                    <span class="pull-right-container"><i class="fa fa-angle-left pull-right"></i></span>
                    <?php endif; ?>
                </a>
                <?php if(!empty($vo['_child'])): ?>
                <ul class="treeview-menu" <?php if(in_array($vo['id'], $activeMenus)): ?>style="display:block;"<?php endif; ?>>
                    <?php if(is_array($vo['_child']) || $vo['_child'] instanceof \think\Collection || $vo['_child'] instanceof \think\Paginator): $i = 0; $__LIST__ = $vo['_child'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo2): $mod = ($i % 2 );++$i;?>
                    <li <?php if(in_array($vo2['id'], $activeMenus)): ?>class="active"<?php endif; ?>><a href="<?php echo url($vo2['name']); ?>"><i class="<?php echo $vo2['icon']; ?>"></i><?php echo $vo2['title']; ?></a></li>
                    <?php endforeach; endif; else: echo "" ;endif; ?>
                </ul>
                <?php endif; ?>
            </li>
            <?php endforeach; endif; else: echo "" ;endif; ?>
        </ul>
    </section>
</aside>
<?php endif; ?>
<div class="content-wrapper" id="pjax-container">

<section class="content">
    <div class="row">
        <div class="col-md-12">
            <div class="nav-tabs-custom">
                <ul class="nav nav-tabs">
                    <li class="active"><a href="#tab1" data-toggle="tab"><?php echo lang('base_param'); ?></a></li>
                    <li><a href="#tab2" data-toggle="tab"><?php echo lang('base_avatar'); ?></a></li>
                    <li class="pull-right"><a href="javascript:history.back(-1)" class="btn btn-sm"><i class="fa fa-list"></i> <?php echo lang('back'); ?></a></li>
                </ul>
                <div class="tab-content">
                    <div class="tab-pane active" id="tab1">
                        <form class="form-horizontal" method="POST" action="" onsubmit="return false" >
                            <?php echo widget('common/Hidden/index', [$data, [
                                'name' => 'id',
                            ]]); ?>
                            <?php echo widget('common/Text/index', [$data, [
                                'name' => 'username',
                                'title' => lang('username'),
                            ]]); ?>
                            <?php echo widget('common/Input/index', [$data, [
                                'name' => 'password',
                                'title' => lang('password'),
                                'placeholder' => lang('password'),
                                'validate' => lang('password_require'),
                                'inputtype' => 'password',
                            ]]); ?>
                            <?php echo widget('common/Input/index', [$data, [
                                'name' => 'repassword',
                                'title' => lang('repassword'),
                                'placeholder' => lang('repassword'),
                                'inputtype' => 'password',
                            ]]); ?>
                            <?php echo widget('common/Input/index', [$data, [
                                'name' => 'name',
                                'title' => lang('name'),
                                'placeholder' => lang('name') ,
                                'validate' => lang('name_require'),
                            ]]); ?>
                            <?php echo widget('common/Input/index', [$data, [
                                'name' => 'mobile',
                                'title' => lang('mobile'),
                                'placeholder' => lang('mobile'),
                            ]]); ?>
                            <?php echo widget('common/Input/index', [$data, [
                                'name' => 'email',
                                'title' => lang('email'),
                                'placeholder' => lang('email'),
                            ]]); ?>
                            <?php echo widget('common/Select/index', [$data, [
                                'name' => 'sex',
                                'title' => lang('sex'),
                                'from' => 'selectlist',
                                'fromcfg' => 'sex',
                            ]]); ?>
                            <?php echo widget('common/Input/index', [$data, [
                                'name' => 'qq',
                                'title' => lang('qq'),
                                'placeholder' => lang('qq'),
                            ]]); ?>
                            <?php echo widget('common/Select/index', [$data, [
                                'name' => 'status',
                                'title' => lang('status'),
                                'from' => 'selectlist',
                                'fromcfg' => 'status',
                            ]]); ?>
                            <div class="form-group">
                                <div class="col-sm-2"></div>
                                <div class="col-sm-6">
                                    <div class="btn-group">
                                        <button type="submit" class="btn btn-info pull-right submits" data-loading-text="&lt;i class='fa fa-spinner fa-spin '&gt;&lt;/i&gt; <?php echo lang('submit'); ?>"><?php echo lang('submit'); ?></button>
                                    </div>
                                </div>
                            </div>
                        </form>
                    </div>
                    <div class="tab-pane" id="tab2">
                        <div class="form-horizontal">
                            <div class="form-group">
                                <label class="col-sm-2 control-label"><?php echo lang('avatar'); ?></label>
                                <div class="col-sm-7">
                                    <div id="avatar-box">
                                        <div class="ibox-content">
                                            <div class="row">
                                                <div id="crop-avatar" class="col-md-6">
                                                    <div class="avatar-view" title="点击修改头像">
                                                        <img src="<?php echo $data['avatar']; ?>" alt="avatar">
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="modal fade" id="avatar-modal" aria-hidden="true" aria-labelledby="avatar-modal-label" role="dialog" tabindex="-1">
                                            <div class="modal-dialog modal-lg">
                                                <div class="modal-content">
                                                    <form class="avatar-form" action="<?php echo url('Uploads/cropper'); ?>?dir=avatar" enctype="multipart/form-data" method="post">
                                                        <input type="hidden" name="id" value="<?php echo $data['id']; ?>" />
                                                        <input type="hidden" name="model" value="Admin" />
                                                        <div class="modal-header">
                                                            <button class="close" data-dismiss="modal" type="button">&times;</button>
                                                            <h4 class="modal-title" id="avatar-modal-label">图片大小限制在 2.00M</h4>
                                                        </div>
                                                        <div class="modal-body">
                                                            <div class="avatar-body">
                                                                <div class="avatar-upload">
                                                                    <input class="avatar-src" name="avatar_src" type="hidden">
                                                                    <input class="avatar-data" name="avatar_data" type="hidden">
                                                                    <label for="avatarInput">图片上传</label>
                                                                    <input class="avatar-input" id="avatarInput" name="avatar_file" type="file"></div>
                                                                <div class="row">
                                                                    <div class="col-md-9">
                                                                        <div class="avatar-wrapper"></div>
                                                                    </div>
                                                                    <div class="col-md-3">
                                                                        <div class="avatar-preview preview-lg"></div>
                                                                        <div class="avatar-preview preview-md hide"></div>
                                                                        <div class="avatar-preview preview-sm hide"></div>
                                                                    </div>
                                                                </div>
                                                                <div class="row avatar-btns">
                                                                    <div class="col-md-9">
                                                                        <div class="btn-group">
                                                                            <button class="btn" data-method="rotate" data-option="-90" type="button"><i class="fa fa-undo"></i> 向左旋转</button>
                                                                        </div>
                                                                        <div class="btn-group">
                                                                            <button class="btn" data-method="rotate" data-option="90" type="button"><i class="fa fa-repeat"></i> 向右旋转</button>
                                                                        </div>
                                                                    </div>
                                                                    <div class="col-md-3">
                                                                        <button class="btn btn-info btn-block" type="submit"><i class="fa fa-save"></i> 保存修改</button>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </form>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</section>
<script type="text/javascript">
$(function(){
    new CropAvatar($('#avatar-box'));
})
</script>

</div>
<?php if(ISPJAX != true): ?>
<footer class="main-footer"><div class="pull-right hidden-xs"><?php echo config('dbconfig.sys.version'); ?></div><?php echo htmlspecialchars_decode(config('dbconfig.sys.copyright')); ?></footer>
<?php endif; if(ISPJAX != true): ?>
</div>
<?php endif; if(ISPJAX != true): ?>
<script type="text/javascript" src="/static/global/jquery/jquery.pjax.js"></script>
<script type="text/javascript" src="/static/global/jquery/jquery.form.js"></script>
<link rel="stylesheet" type="text/css" href="/static/global/nprogress/nprogress.css" />
<script type="text/javascript" src="/static/global/nprogress/nprogress.js"></script>
<script type="text/javascript" src="/static/global/jquery-slimscroll/jquery.slimscroll.min.js"></script>
<script type="text/javascript" src="/static/global/layer/layer.js"></script>
<script type="text/javascript" src="/static/global/select2/select2.min.js"></script>
<script type="text/javascript" src="/static/global/select2/i18n/zh-CN.js"></script>
<script type="text/javascript" src="/static/global/icheck/icheck.min.js"></script>
<link rel="stylesheet" type="text/css" href="/static/global/kindeditor/themes/default/default.css" />
<script type="text/javascript" src="/static/global/kindeditor/kindeditor-all.js"></script>
<script type="text/javascript" src="/static/global/kindeditor/lang/zh-CN.js"></script>
<script type="text/javascript" src="/static/global/datetimepicker/moment-with-locales.min.js"></script>
<script type="text/javascript" src="/static/global/datetimepicker/bootstrap-datetimepicker.min.js"></script>
<link rel="stylesheet" type="text/css" href="/static/global/cropper/cropper.main.css" />
<link rel="stylesheet" type="text/css" href="/static/global/cropper/cropper.min.css" />
<script type="text/javascript" src="/static/global/cropper/cropper.main.js"></script>
<script type="text/javascript" src="/static/global/cropper/cropper.min.js"></script>
<script type="text/javascript" src="/static/global/chart/Chart.min.js"></script>
<script type="text/javascript" src="/static/system/dist/js/adminlte.min.js"></script>
<script type="text/javascript" src="/static/system/dist/js/common.js"></script>
<?php endif; if(ISPJAX != true): ?>
</body>
</html>
<?php endif; ?>